/**
 * 点赞接口
 *
 * @project leadnews-project
 * @author MECHREVO
 * @date 2024/1/24 21:28:40
 * @version 1.0
 */
package com.heima.user.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.FollowDto;
import com.heima.user.service.UserFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/user")
public class UserFollowController {

    @Autowired
    private UserFollowService userFollowService;

    /**
     * 用户关注的功能
     * @param followDto
     * @return
     */
    @PostMapping("/user_follow")
    public ResponseResult UserFollow(@RequestBody FollowDto followDto){
        return userFollowService.userFollow(followDto);
    }
}
